package com.wust.supermarket.service;

import com.wust.supermarket.domain.Merch;

import java.util.List;

public interface MerchService {
    //查询所有商品
    List<Merch> listAllMerches();

    //查询所有下架商品
    List<Merch> listAllOffMerchs();

    //通过ID查询商品
    Merch getMerchById(int merchId);

    //插入商品
    int insertMerch(Merch merch);

    //修改商品
    boolean updateMerch(Merch merch);

    //删除商品
    int deleteMerch(int merchId);

    //获取库存总量
    int getMerchNumber();

}
